Avoid performing non trivial operations on files#7904
Avoid performing non trivial operations on files#7904facchinm wants to merge 1 commit intoarduino:masterfrom
Conversation
Fixes arduino#6404 as per @cmaglie comment.
|
✅ Build completed. Please test this code using one of the following: ⬇️ http://downloads.arduino.cc/javaide/pull_requests/arduino-PR-7904-BUILD-752-linux32.tar.xz ℹ️ The |
|
Uhm, I'm a bit confused:
|
|
Argh, I was a bit in a hurry and pasted the wrong link... |
Alternative to arduino#7904, tries to distinguish between * click on a single ino file downloaded from the internet (old behaviour applies, directory is created an the file is moved in it) * click on an ino file that for some reason is part of a project with the wrong name (eg. it was downloaded as zip from github, so the containing folder names becomes "projectName-master"). In this case if the directory is created one level above the selected file, all files are moved there and the original directory is recursively deleted)
Alternative to arduino#7904, tries to distinguish between * click on a single ino file downloaded from the internet (old behaviour applies, directory is created an the file is moved in it) * click on an ino file that for some reason is part of a project with the wrong name (eg. it was downloaded as zip from github, so the containing folder names becomes "projectName-master"). In this case if the directory is created one level above the selected file, all files are moved there and the original directory is recursively deleted)
|
Follow up on #7909 |
Fixes #7843 as per @cmaglie comment.
Translations should be updated removing the second part of the information text.
RATIONALE:
Problem: most of the times .ino files downloads from the web are being saved in the Download folder, so the move operation copied the whole Downloads content into that folder 😳
@cmaglie suggested the IDE shouldn't be allowed to do this kind of operations; this patch removes the automatic move and requires the user to create the folder and move .ino file inside it manually